package com.lx.bean;

import java.util.ArrayList;
import java.util.List;

public class ForumBodyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ForumBodyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFbIdIsNull() {
            addCriterion("fb_id is null");
            return (Criteria) this;
        }

        public Criteria andFbIdIsNotNull() {
            addCriterion("fb_id is not null");
            return (Criteria) this;
        }

        public Criteria andFbIdEqualTo(Integer value) {
            addCriterion("fb_id =", value, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdNotEqualTo(Integer value) {
            addCriterion("fb_id <>", value, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdGreaterThan(Integer value) {
            addCriterion("fb_id >", value, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("fb_id >=", value, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdLessThan(Integer value) {
            addCriterion("fb_id <", value, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdLessThanOrEqualTo(Integer value) {
            addCriterion("fb_id <=", value, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdIn(List<Integer> values) {
            addCriterion("fb_id in", values, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdNotIn(List<Integer> values) {
            addCriterion("fb_id not in", values, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdBetween(Integer value1, Integer value2) {
            addCriterion("fb_id between", value1, value2, "fbId");
            return (Criteria) this;
        }

        public Criteria andFbIdNotBetween(Integer value1, Integer value2) {
            addCriterion("fb_id not between", value1, value2, "fbId");
            return (Criteria) this;
        }

        public Criteria andFidIsNull() {
            addCriterion("fid is null");
            return (Criteria) this;
        }

        public Criteria andFidIsNotNull() {
            addCriterion("fid is not null");
            return (Criteria) this;
        }

        public Criteria andFidEqualTo(Integer value) {
            addCriterion("fid =", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidNotEqualTo(Integer value) {
            addCriterion("fid <>", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidGreaterThan(Integer value) {
            addCriterion("fid >", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidGreaterThanOrEqualTo(Integer value) {
            addCriterion("fid >=", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidLessThan(Integer value) {
            addCriterion("fid <", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidLessThanOrEqualTo(Integer value) {
            addCriterion("fid <=", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidIn(List<Integer> values) {
            addCriterion("fid in", values, "fid");
            return (Criteria) this;
        }

        public Criteria andFidNotIn(List<Integer> values) {
            addCriterion("fid not in", values, "fid");
            return (Criteria) this;
        }

        public Criteria andFidBetween(Integer value1, Integer value2) {
            addCriterion("fid between", value1, value2, "fid");
            return (Criteria) this;
        }

        public Criteria andFidNotBetween(Integer value1, Integer value2) {
            addCriterion("fid not between", value1, value2, "fid");
            return (Criteria) this;
        }

        public Criteria andKindIsNull() {
            addCriterion("kind is null");
            return (Criteria) this;
        }

        public Criteria andKindIsNotNull() {
            addCriterion("kind is not null");
            return (Criteria) this;
        }

        public Criteria andKindEqualTo(String value) {
            addCriterion("kind =", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindNotEqualTo(String value) {
            addCriterion("kind <>", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindGreaterThan(String value) {
            addCriterion("kind >", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindGreaterThanOrEqualTo(String value) {
            addCriterion("kind >=", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindLessThan(String value) {
            addCriterion("kind <", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindLessThanOrEqualTo(String value) {
            addCriterion("kind <=", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindLike(String value) {
            addCriterion("kind like", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindNotLike(String value) {
            addCriterion("kind not like", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindIn(List<String> values) {
            addCriterion("kind in", values, "kind");
            return (Criteria) this;
        }

        public Criteria andKindNotIn(List<String> values) {
            addCriterion("kind not in", values, "kind");
            return (Criteria) this;
        }

        public Criteria andKindBetween(String value1, String value2) {
            addCriterion("kind between", value1, value2, "kind");
            return (Criteria) this;
        }

        public Criteria andKindNotBetween(String value1, String value2) {
            addCriterion("kind not between", value1, value2, "kind");
            return (Criteria) this;
        }

        public Criteria andThemenumIsNull() {
            addCriterion("themenum is null");
            return (Criteria) this;
        }

        public Criteria andThemenumIsNotNull() {
            addCriterion("themenum is not null");
            return (Criteria) this;
        }

        public Criteria andThemenumEqualTo(Integer value) {
            addCriterion("themenum =", value, "themenum");
            return (Criteria) this;
        }

        public Criteria andThemenumNotEqualTo(Integer value) {
            addCriterion("themenum <>", value, "themenum");
            return (Criteria) this;
        }

        public Criteria andThemenumGreaterThan(Integer value) {
            addCriterion("themenum >", value, "themenum");
            return (Criteria) this;
        }

        public Criteria andThemenumGreaterThanOrEqualTo(Integer value) {
            addCriterion("themenum >=", value, "themenum");
            return (Criteria) this;
        }

        public Criteria andThemenumLessThan(Integer value) {
            addCriterion("themenum <", value, "themenum");
            return (Criteria) this;
        }

        public Criteria andThemenumLessThanOrEqualTo(Integer value) {
            addCriterion("themenum <=", value, "themenum");
            return (Criteria) this;
        }

        public Criteria andThemenumIn(List<Integer> values) {
            addCriterion("themenum in", values, "themenum");
            return (Criteria) this;
        }

        public Criteria andThemenumNotIn(List<Integer> values) {
            addCriterion("themenum not in", values, "themenum");
            return (Criteria) this;
        }

        public Criteria andThemenumBetween(Integer value1, Integer value2) {
            addCriterion("themenum between", value1, value2, "themenum");
            return (Criteria) this;
        }

        public Criteria andThemenumNotBetween(Integer value1, Integer value2) {
            addCriterion("themenum not between", value1, value2, "themenum");
            return (Criteria) this;
        }

        public Criteria andArticlenumIsNull() {
            addCriterion("articlenum is null");
            return (Criteria) this;
        }

        public Criteria andArticlenumIsNotNull() {
            addCriterion("articlenum is not null");
            return (Criteria) this;
        }

        public Criteria andArticlenumEqualTo(String value) {
            addCriterion("articlenum =", value, "articlenum");
            return (Criteria) this;
        }

        public Criteria andArticlenumNotEqualTo(String value) {
            addCriterion("articlenum <>", value, "articlenum");
            return (Criteria) this;
        }

        public Criteria andArticlenumGreaterThan(String value) {
            addCriterion("articlenum >", value, "articlenum");
            return (Criteria) this;
        }

        public Criteria andArticlenumGreaterThanOrEqualTo(String value) {
            addCriterion("articlenum >=", value, "articlenum");
            return (Criteria) this;
        }

        public Criteria andArticlenumLessThan(String value) {
            addCriterion("articlenum <", value, "articlenum");
            return (Criteria) this;
        }

        public Criteria andArticlenumLessThanOrEqualTo(String value) {
            addCriterion("articlenum <=", value, "articlenum");
            return (Criteria) this;
        }

        public Criteria andArticlenumLike(String value) {
            addCriterion("articlenum like", value, "articlenum");
            return (Criteria) this;
        }

        public Criteria andArticlenumNotLike(String value) {
            addCriterion("articlenum not like", value, "articlenum");
            return (Criteria) this;
        }

        public Criteria andArticlenumIn(List<String> values) {
            addCriterion("articlenum in", values, "articlenum");
            return (Criteria) this;
        }

        public Criteria andArticlenumNotIn(List<String> values) {
            addCriterion("articlenum not in", values, "articlenum");
            return (Criteria) this;
        }

        public Criteria andArticlenumBetween(String value1, String value2) {
            addCriterion("articlenum between", value1, value2, "articlenum");
            return (Criteria) this;
        }

        public Criteria andArticlenumNotBetween(String value1, String value2) {
            addCriterion("articlenum not between", value1, value2, "articlenum");
            return (Criteria) this;
        }

        public Criteria andLatelyIsNull() {
            addCriterion("lately is null");
            return (Criteria) this;
        }

        public Criteria andLatelyIsNotNull() {
            addCriterion("lately is not null");
            return (Criteria) this;
        }

        public Criteria andLatelyEqualTo(String value) {
            addCriterion("lately =", value, "lately");
            return (Criteria) this;
        }

        public Criteria andLatelyNotEqualTo(String value) {
            addCriterion("lately <>", value, "lately");
            return (Criteria) this;
        }

        public Criteria andLatelyGreaterThan(String value) {
            addCriterion("lately >", value, "lately");
            return (Criteria) this;
        }

        public Criteria andLatelyGreaterThanOrEqualTo(String value) {
            addCriterion("lately >=", value, "lately");
            return (Criteria) this;
        }

        public Criteria andLatelyLessThan(String value) {
            addCriterion("lately <", value, "lately");
            return (Criteria) this;
        }

        public Criteria andLatelyLessThanOrEqualTo(String value) {
            addCriterion("lately <=", value, "lately");
            return (Criteria) this;
        }

        public Criteria andLatelyLike(String value) {
            addCriterion("lately like", value, "lately");
            return (Criteria) this;
        }

        public Criteria andLatelyNotLike(String value) {
            addCriterion("lately not like", value, "lately");
            return (Criteria) this;
        }

        public Criteria andLatelyIn(List<String> values) {
            addCriterion("lately in", values, "lately");
            return (Criteria) this;
        }

        public Criteria andLatelyNotIn(List<String> values) {
            addCriterion("lately not in", values, "lately");
            return (Criteria) this;
        }

        public Criteria andLatelyBetween(String value1, String value2) {
            addCriterion("lately between", value1, value2, "lately");
            return (Criteria) this;
        }

        public Criteria andLatelyNotBetween(String value1, String value2) {
            addCriterion("lately not between", value1, value2, "lately");
            return (Criteria) this;
        }

        public Criteria andTodaynumIsNull() {
            addCriterion("todaynum is null");
            return (Criteria) this;
        }

        public Criteria andTodaynumIsNotNull() {
            addCriterion("todaynum is not null");
            return (Criteria) this;
        }

        public Criteria andTodaynumEqualTo(Integer value) {
            addCriterion("todaynum =", value, "todaynum");
            return (Criteria) this;
        }

        public Criteria andTodaynumNotEqualTo(Integer value) {
            addCriterion("todaynum <>", value, "todaynum");
            return (Criteria) this;
        }

        public Criteria andTodaynumGreaterThan(Integer value) {
            addCriterion("todaynum >", value, "todaynum");
            return (Criteria) this;
        }

        public Criteria andTodaynumGreaterThanOrEqualTo(Integer value) {
            addCriterion("todaynum >=", value, "todaynum");
            return (Criteria) this;
        }

        public Criteria andTodaynumLessThan(Integer value) {
            addCriterion("todaynum <", value, "todaynum");
            return (Criteria) this;
        }

        public Criteria andTodaynumLessThanOrEqualTo(Integer value) {
            addCriterion("todaynum <=", value, "todaynum");
            return (Criteria) this;
        }

        public Criteria andTodaynumIn(List<Integer> values) {
            addCriterion("todaynum in", values, "todaynum");
            return (Criteria) this;
        }

        public Criteria andTodaynumNotIn(List<Integer> values) {
            addCriterion("todaynum not in", values, "todaynum");
            return (Criteria) this;
        }

        public Criteria andTodaynumBetween(Integer value1, Integer value2) {
            addCriterion("todaynum between", value1, value2, "todaynum");
            return (Criteria) this;
        }

        public Criteria andTodaynumNotBetween(Integer value1, Integer value2) {
            addCriterion("todaynum not between", value1, value2, "todaynum");
            return (Criteria) this;
        }

        public Criteria andImgIsNull() {
            addCriterion("img is null");
            return (Criteria) this;
        }

        public Criteria andImgIsNotNull() {
            addCriterion("img is not null");
            return (Criteria) this;
        }

        public Criteria andImgEqualTo(String value) {
            addCriterion("img =", value, "img");
            return (Criteria) this;
        }

        public Criteria andImgNotEqualTo(String value) {
            addCriterion("img <>", value, "img");
            return (Criteria) this;
        }

        public Criteria andImgGreaterThan(String value) {
            addCriterion("img >", value, "img");
            return (Criteria) this;
        }

        public Criteria andImgGreaterThanOrEqualTo(String value) {
            addCriterion("img >=", value, "img");
            return (Criteria) this;
        }

        public Criteria andImgLessThan(String value) {
            addCriterion("img <", value, "img");
            return (Criteria) this;
        }

        public Criteria andImgLessThanOrEqualTo(String value) {
            addCriterion("img <=", value, "img");
            return (Criteria) this;
        }

        public Criteria andImgLike(String value) {
            addCriterion("img like", value, "img");
            return (Criteria) this;
        }

        public Criteria andImgNotLike(String value) {
            addCriterion("img not like", value, "img");
            return (Criteria) this;
        }

        public Criteria andImgIn(List<String> values) {
            addCriterion("img in", values, "img");
            return (Criteria) this;
        }

        public Criteria andImgNotIn(List<String> values) {
            addCriterion("img not in", values, "img");
            return (Criteria) this;
        }

        public Criteria andImgBetween(String value1, String value2) {
            addCriterion("img between", value1, value2, "img");
            return (Criteria) this;
        }

        public Criteria andImgNotBetween(String value1, String value2) {
            addCriterion("img not between", value1, value2, "img");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}